feat: add QuadraticDiophantineEquations model (#543)#812
Conversation
Add decision problem: given positive integers a, b, c, determine whether there exist positive integers x, y such that ax^2 + by = c. Single variable x with y derived; complexity O(sqrt(c)) by trial. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #812 +/- ##
==========================================
- Coverage 97.86% 97.86% -0.01%
==========================================
Files 635 637 +2
Lines 69612 69818 +206
==========================================
+ Hits 68126 68325 +199
- Misses 1486 1493 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Agentic Review ReportStructural CheckStructural Review: model QuadraticDiophantineEquationsStructural Completeness
Blacklisted Files
Build Status
Semantic Review
Issue Compliance
Summary
Quality CheckQuality ReviewDesign Principles
HCI (if CLI/MCP changed)
Test Quality
IssuesCritical (Must Fix)
Important (Should Fix)
Minor (Nice to Have)
Summary
Agentic Feature TestsFeature Test Report: problem-reductionsDate: 2026-03-29 Summary
Per-Feature DetailsQuadraticDiophantineEquations model
Expected vs Actual Outcome
Issues Found
Suggestions
Generated by review-pipeline |
…mand - Rename `c_val()` getter to `c()` so user-facing catalog output shows the mathematical parameter name instead of an implementation detail - Add `--solver brute-force` to paper's `pred solve` command since QuadraticDiophantineEquations has no ILP reduction path Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The file was brought in by a contaminated merge commit and does not belong to the QuadraticDiophantineEquations model PR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
All three QDE parameters now use the coeff- prefix: --coeff-a, --coeff-b, --coeff-c. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
QuadraticDiophantineEquationsmodel: given positive integers a, b, c, decide whether ax^2 + by = c has a solution in positive integers x, yOrpred create QuadraticDiophantineEquations --coeff-a --coeff-b --rhs), canonical example, paper entry with worked tableCloses #543
Test plan
make fmt-checkcleanmake clippycleanmake testfull suite passes🤖 Generated with Claude Code